N = int(input())
a = list(map(int, input().split()))

b = set()
n = 0
i = 0

while n < N:
    if a[i] not in b:
        b.add(a[i])
        n += 1
        i += 1
    else:
        a[i] += 1


# 注意输出格式
print(" ".join(map(str, a)))
# print(" ".join(a))  # expected str instance, int found
